<?php
$this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'cl-nav'));
$urlCurr = $_SERVER['REQUEST_URI'];
$controller = Yii::app()->controller->getId();
$this->widget('webroot.widgets.iNavbar', array(
		'type'=>'', // null or 'inverse'
		'collapse'=>true, // requires bootstrap-responsive.css
		'items'=>array(
			array(
				'class'=>'bootstrap.widgets.TbMenu',
				'htmlOptions'=>array('class'=>'flat-list'),
				'items'=>array(
						array('label'=>Yii::t('DeliveryModule.main', 'Customer Manager'), 'url'=>Yii::app()->createUrl('/delivery/customer/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='customer')?true:false),
						array('label'=>Yii::t('DeliveryModule.main', 'Ticket Manager'), 'url'=>Yii::app()->createUrl('/delivery/deliveryOrderTicket/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='deliveryOrderTicket')?true:false),
						array('label'=>Yii::t('DeliveryModule.main', 'Transfer Detail Manager'), 'url'=>Yii::app()->createUrl('/delivery/moveDetail/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='moveDetail')?true:false),
						array('label'=>Yii::t('DeliveryModule.main', 'List Manager'), 'url'=>Yii::app()->createUrl('/delivery/deliveryServices/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='deliveryServices')?true:false),
				),
			),
		),
));
$this->endWidget();

$this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'tbar'));
	$this->widget('webroot.widgets.iNavbox', array(
			'type'=>'', // null or 'inverse'
			'collapse'=>true, // requires bootstrap-responsive.css
			'brand'=>Yii::t('DeliveryModule.main', 'List Manager'),
			'items'=>array(
					array(
						'class'=>'bootstrap.widgets.TbMenu',
						'htmlOptions'=>array('class'=>'flat-list'),
						'items'=>array(
								array('label'=>Yii::t('DeliveryModule.main', 'Services Manager'), 'url'=>Yii::app()->createUrl('/delivery/deliveryServices/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='deliveryServices')?true:false),
								array('label'=>Yii::t('DeliveryModule.main', 'More Services Manager'), 'url'=>Yii::app()->createUrl('/delivery/deliveryServicesAdd/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='deliveryServicesAdd')?true:false),
								array('label'=>Yii::t('DeliveryModule.main', 'Payment Manager'), 'url'=>Yii::app()->createUrl('/delivery/payment/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='payment')?true:false),
								array('label'=>Yii::t('DeliveryModule.main', 'Office Manager'), 'url'=>Yii::app()->createUrl('/delivery/office/admin'), 'visible'=>!Yii::app()->user->isGuest, 'active'=>($controller=='office')?true:false),
						),
					),
			),
	));
$this->endWidget();


$this->beginContent('webroot.themes.layouts.column1');
echo $content;
$this->endContent();

